get operating system
FUNCTION GetOS & ! ( ) & ! RESULT (os) IMPLICIT NONE ! Local declarations: INTEGER :: os !------------end of declaration------------------------------------------------ #ifdef _WIN32 !detected Windows OS os = WIN32 #else !detected unix like OS, including linux os = UNIX #endif RETURN END FUNCTION GetOS